<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>up6-单面板演示页面</title>
    <link rel="stylesheet" type="text/css" href="/static/up6/panel/up6.css" />
    <script type="text/javascript" src="/static/jquery-1.4.min.js"></script>
    <script type="text/javascript" src="/static/json2.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/up6/up6.edge.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/up6/up6.app.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/up6/panel/up6.file.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/up6/panel/up6.folder.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/up6/panel/up6.js" charset="utf-8"></script>
    <script language="javascript" type="text/javascript">
        //根路径：http://localhost:8888/down2/db/
        var api = [
            window.location.protocol,
            "//",
            window.location.host,
            "/up6/"
        ].join("");

        var cbMgr = new HttpUploaderMgr({
            Config: {
                License2: "",//授权码
                FileFilter: "*",//限制上传的文件类型
                //赋加字段，业务逻辑字段
                Fields: { uid: 0 },
                //后端接口-文件夹
                "UrlFdCreate": api+"nosql/fd_create",
                "UrlFdComplete": api+"nosql/fd_complete",
                "UrlFdDel": api+"nosql/fd_del",
                //后端接口-文件
                "UrlCreate": api+"nosql/f_create",
                "UrlPost": api+"f_post",
                "UrlProcess": api+"nosql/f_process",
                "UrlComplete": api+"nosql/f_complete",
                "UrlList": api+"nosql/f_list",
                "UrlDel": api+"nosql/f_del"
            },//事件
            event: {
                md5Complete: function (obj, md5) {
                    //文件md5计算完毕
                },
                fileComplete: function (obj) {
                    //文件上传完毕
                },
                queueComplete: function () {
                    //队列中所有文件上传完毕
                    $(document.body).append("队列完成<br/>");
                },
                addFdError: function (jv) {
                    //添加文件夹错误
                    alert("本地路径不存在：" + jv.path);
                },
                scanComplete: function (obj) {
                    //目录扫描完毕
                }
            },
            ui: {
                render: "FilePanel"
            }
        });
    </script>
</head>

<body>
<p>up6单面板演示页面</p>
<p><a href="/up6/clear" target="_blank">上传-清空数据库</a></p>
<p><a href="/up6/index" target="_blank">上传-多标签示例</a></p>
<p><a href="/up6/panel" target="_blank">上传-单面板示例</a></p>
<p><a href="/up6/single" target="_blank">上传-单文件示例</a></p>
<p><a href="/up6/vue" target="_blank">上传-vue示例</a></p>
<p><a href="/up6/layer" target="_blank">上传-layer弹窗示例</a></p>
<p><a href="/filemgr/index" target="_blank">文件管理器示例</a></p>
<p><a href="/down2/clear" target="_blank">下载-清空数据库</a></p>
<p><a href="/down2/index" target="_blank">下载-下载示例</a></p>
<p><a href="/down2/ligerui" target="_blank">下载-ligerui示例</a></p>
<!--ui-->
<div id="FilePanel"></div>
<div id="msg"></div>
</body>
</html>